let buyversions = {
  top: {
    bgimg: {
      A: {
        imgurl: "/static/salebond/version1.png"
      },
      B: {
        imgurl: "/static/salebond/version2.png"
      },
      C: {
        imgurl: "/static/salebond/version3.png"
      }
    },
    version: {
      A: {
        title: "智慧零售版",
        imgurl: "/static/salebond/versionA.png",
        price: 365,
        summary: ["适用于专卖店拓展线上渠道引流到店并快速成交"]
      },
      B: {
        title: "门店旗舰版",
        imgurl: "/static/salebond/versionB.png",
        price: 720,
        summary: ["适用于代理多个品牌和门店多个导购协同管理"]
      },
      C: {
        title: "独立商城版",
        imgurl: "/static/salebond/versionC.png",
        price: 1599,
        summary: ["适用于有自有品牌的独立卖场提升销量和品牌影响力"]
      }
    }
  },
  bottom: {
    A: {
      title: "智慧零售版特权",
      img: [
        {
          title: "包含数字展厅版所有功能",
          url: "/static/salebond/a1.png"
        },
        {
          title: "品牌智慧商城",
          url: "/static/salebond/a2.png"
        },
        {
          title: "专属电子名片",
          url: "/static/salebond/a3.png"
        },
        {
          title: "产品独立定价",
          url: "/static/salebond/a4.png"
        },
        {
          title: "厂家联动活动",
          url: "/static/salebond/a5.png"
        },
        {
          title: "精美海报获客",
          url: "/static/salebond/a6.png"
        },
        {
          title: "海量推文获客",
          url: "/static/salebond/a7.png"
        },
        {
          title: "分享产品获客",
          url: "/static/salebond/a8.png"
        },
        {
          title: "顾客行为分析",
          url: "/static/salebond/a9.png"
        },
        {
          title: "客户管理系统",
          url: "/static/salebond/a10.png"
        }
      ],
      bottomtitle: {
        title: "零售版",
        selectedurl: "/static/salebond/bottomASelected.png",
        url: "/static/salebond/bottomA.png"
      }
    },
    B: {
      title: "门店旗舰版特权",
      img: [
        {
          title: "包含数字展厅版所有功能",
          url: "/static/salebond/b1.png"
        },
        {
          title: "包含智慧零售版所有功能",
          url: "/static/salebond/b2.png"
        },
        {
          title: "APP集成代理的其他产品",
          url: "/static/salebond/b3.png"
        },
        {
          title: "独立开展门店活动",
          url: "/static/salebond/b4.png"
        },
        {
          title: "送5个导购账号",
          url: "/static/salebond/b5.png"
        },
        {
          title: "团队数据管理",
          url: "/static/salebond/b6.png"
        }
      ],
      bottomtitle: {
        title: "门店版",
        selectedurl: "/static/salebond/bottomBSelected.png",
        url: "/static/salebond/bottomB.png"
      }
    },
    C: {
      title: "独立商城版特权",
      img: [
        {
          title: "包含数字展厅版所有功能",
          url: "/static/salebond/c1.png"
        },
        {
          title: "包含智慧零售版所有功能",
          url: "/static/salebond/c2.png"
        },
        {
          title: "包含门店旗舰版所有功能",
          url: "/static/salebond/c3.png"
        },
        {
          title: "独立品牌商城",
          url: "/static/salebond/c4.png"
        },
        {
          title: "独立商城版",
          url: "/static/salebond/c5.png"
        },
        {
          title: "独立管理后台",
          url: "/static/salebond/c6.png"
        }
      ],
      bottomtitle: {
        title: "商城版",
        selectedurl: "/static/salebond/bottomCSelected.png",
        url: "/static/salebond/bottomC.png"
      }
    }
  }
};
const ComponentSysNames = {
  textcopt: "txt",
  titlecopt: "titles",
  graphicnavigation: "navigate",
  placeholderwhitecopt: "blank",
  gratextadscopt: "photoads",
  sublinecopt: "subline",
  richtextcopt: "richtext",
  videocopt: "videos",
  maketingactivitycopt: "maketingactivity",
  productcopt: "product",
  tagproductcopt: "producttag",
  imgcopt: "images",
  phonecopt: "telephone",
  mapcopt: "mapaddress",
  newscopt: "newsinformation",
  couponercopt: "getcoupon"
};
let Medias = {
  activity: {
    luckyresult: "/bondai/17377/wxexample/luckyresult.png", // 领取成功
    bondluckyresult: "/bondai/17377/wxexample/bondluckyresult.png", // 领取成功
    luckyresult1: "/bondai/17377/wxexample/luckyresult1.png", // 你已领取
    bondluckyresult1: "/bondai/17377/wxexample/bondluckyresult1.png", // 你已领取
    choujiang: "/bondai/17377/wxexample/choujiang.png",
    rightnowbuy: "/bondai/17377/wxexample/rightnowbuy.png", // 立即购买
    legend: "/bondai/17377/wxexample/legend.jpg" // 活动示例
  },
  checkcoupon: {
    checkcoupon: "/bondai/17377/wxexample/checkcoupon.png", // 优惠券核销
    getcoup: "/bondai/17377/wxexample/getcoup.png" // 组件已领取优惠券
  },
  poster: {
    img1: "/bondai/17377/wxexample/img1.png", // 分享海报1234
    img2: "/bondai/17377/wxexample/img2.png",
    img3: "/bondai/17377/wxexample/img3.png",
    img4: "/bondai/17377/wxexample/img4.png",
    img5: "/bondai/17377/wxexample/img5.jpg" // 文化杉
  },
  businesscard: {
    tips: "/bondai/17377/wxexample/tips.gif" // 名片页提示添加到我的小程序
  },
  luckdraw: {
    luckdrawbg: "/bondai/17377/wxexample/luckdrawbg.png",
    luckypai: "/bondai/17377/wxexample/luckypai.png",
    ldr: "/bondai/17377/wxexample/ldr.png",
    ldr1: "/bondai/17377/wxexample/ldr1.png",
    ldr2: "/bondai/17377/wxexample/ldr2.png",
    ldr3: "/bondai/17377/wxexample/ldr3.png",
    ldr4: "/bondai/17377/wxexample/ldr4.png",
    ldr5: "/bondai/17377/wxexample/ldr5.png",
    go: "/bondai/17377/wxexample/go.png",
    zjresult: "/bondai/17377/wxexample/zjsuccessresult.png",
    yzjresult: "/bondai/17377/wxexample/yjsuccessresult.png",
    nozjresult: "/bondai/17377/wxexample/nozjresult.png",
    luckrecords: "/bondai/17377/wxexample/luckrecords.png",
    start: "/bondai/17377/wxexample/start.mp3", // '/bondai/17377/wxexample/start.mp3'
    end: "/bondai/17377/wxexample/end.mp3" // bondai/17377/wxexample/end.mp3
  }
};

function InitMedias(baseserviceurl) {
  if (baseserviceurl) {
    let newmedias = {};
    for (const mediakey in Medias) {
      const mediaobj = Medias[mediakey];
      newmedias[mediakey] = {};
      for (const media in mediaobj) {
        const mediaurl = mediaobj[media];
        let tempmediaurl = mediaurl;
        if (tempmediaurl.length > 0 && tempmediaurl.indexOf("http") !== 0) {
          tempmediaurl = baseserviceurl + tempmediaurl;
        }
        newmedias[mediakey][media] = tempmediaurl;
      }
    }
    Medias = newmedias;
  }
}
export { buyversions, ComponentSysNames, InitMedias, Medias };
